* {
    padding: 0;
    margin: 0;
}

html,
body {
    width: 100%;
}

.clearfixed::after {
    display: block;
    content: '';
    clear: both;
    height: 0;
}

a {
    text-decoration: none;
}

ul,
ol,
li {
    list-style: none;
}

header {
    border-bottom: 1px solid #ddd;

    #top {
        width: 100%;
        min-width: 1200px;
        background: #e3e4e5;

        >div {
            width: 1200px;
            height: 16px;
            padding: 7px 0;
            margin: 0 auto;
            color: #999;

            >span {
                float: left;
                font-size: 12px;

                &:hover {
                    color: #e1251b;
                    cursor: pointer;
                }
            }

            >ul {
                float: left;
                margin-left: 300px;
                line-height: 16px;

                li {
                    float: left;
                    padding: 0 10px;
                    border-right: 1px solid #999;

                    a {
                        color: #999;
                        font-size: 12px;

                        &:hover {
                            color: #e1251b;
                        }
                    }
                }
            }
        }
    }

    #head {
        width: 1200px;
        margin: 0 auto;
        padding-top: 20px;
        position: relative;

        .left {
            display: block;
            width: 190px;
            height: 120px;
            float: left;
            background: url(../static/logo.png) no-repeat;
            background-position: 0 0;

            &:hover {
                cursor: pointer;
            }
        }

        .center {
            width: 750px;
            float: left;

            .searchAndCart {
                width: 750px;
                height: 36px;

                .search {
                    width: 550px;
                    float: left;
                    height: 32px;
                    border: 2px solid #e1251b;
                    margin-left: 50px;
                    position: relative;

                    input {
                        width: 425px;
                        height: 26px;
                        line-height: 26px;
                        border: 1px solid transparent;
                        outline: none;
                        padding: 2px 44px 2px 17px;
                        // vertical-align: baseline;
                    }

                    a {
                        display: inline-block;
                        line-height: 34px;
                        position: absolute;
                        right: 75px;
                        font-size: 18px;

                        &:hover {
                            color: #e1251b;
                            cursor: pointer;
                        }
                    }

                    button {
                        box-sizing: content-box;
                        width: 56px;
                        height: 34px;
                        float: right;
                        line-height: 34px;
                        text-align: center;
                        border: 0;
                        color: #fff;
                        background-color: #e1251b;
                        font-size: 20px;
                        font-weight: 700;

                        &:hover {
                            cursor: pointer;
                            background-color: #c81623;
                        }
                    }

                }

                .cart {
                    width: 130px;
                    height: 34px;
                    line-height: 34px;
                    border: 1px solid #e3e4e5;
                    float: right;
                    text-indent: 1em;

                    span {
                        color: #e1251b;
                        font-size: 16px;
                        margin-right: 5px;
                    }

                    a {
                        color: #e1251b;
                        font-size: 12px;
                    }
                }

            }

            .hotword {
                width: 550px;
                height: 20px;
                line-height: 20px;
                margin-left: 50px;

                a {
                    color: #999;
                    font-size: 12px;
                    margin-right: 10px;

                    &:hover {
                        color: #e1251b;
                    }
                }
            }

            .nav {
                width: 750px;
                height: 40px;
                line-height: 40px;
                padding-top: 24px;

                li {
                    float: left;
                    padding: 0 10px;
                    font-size: 15px;
                    color: #333;

                    &:hover {
                        color: #e1251b;
                        cursor: pointer;
                    }
                }
            }

        }

        .right {
            width: 60px;
            height: 60px;
            float: right;
            margin-right: 130px;
            background: url(../static/下载.png) no-repeat;
            background-position: 0 0;

            &:hover {
                cursor: pointer;
            }
        }
    }
}

main {
    width: 100%;
    min-width: 1200px;
    background: #e3e4e5;

    #bannerAndOther {
        width: 1200px;
        margin: 0 auto;
        padding-top: 20px;

        .productType {
            width: 170px;
            line-height: 25px;
            // border: 1px solid #333;
            font-size: 14px;
            background: #fff;

            float: left;
            padding: 10px 10px;

            li>a {
                color: #333;

                &:hover {
                    color: #e1251b;
                }
            }
        }

        .banner {
            width: 590px;
            height: 470px;
            float: left;
            // background: #fff;
            overflow: hidden;
            margin: 0 10px;
            position: relative;

            .swiper {
                width: 590px;
                height: 470px;
                // position: absolute;
                // left: -590px;
                // top: 0;

                img{
                    width: 590px;
                    height: 470px;
                }
            }
        }

        .productShow {
            width: 190px;
            float: left;

            a {
                display: block;
                width: 190px;
                height: 150px;
                background: #fff;
                margin-bottom: 10px;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .other {
            width: 160px;
            height: 450px;
            float: right;
            margin-right: 10px;
            background: #fff;
            padding: 20px 15px 0 15px;

            .userData {
                width: 160px;
                height: 102px;

                .clearfixed {
                    width: 160px;

                    >img {
                        width: 40px;
                        height: 40px;
                        border-radius: 50%;
                        float: left;
                    }

                    a {
                        color: #666;
                        font-size: 12px;

                        &:hover {
                            color: #e1251b;
                        }
                    }

                    >div {
                        float: right;
                        margin-right: 20px;
                    }
                }

                .user_profit {
                    margin-top: 10px;
                    width: 160px;
                    text-align: center;

                    &::after {
                        display: block;
                        content: '';
                        height: 1px;
                        background: linear-gradient(270deg, white, #eee, #eee, white);
                    }

                    a {
                        display: inline-block;
                        width: 70px;
                        height: 25px;
                        border-radius: 8px;
                        background: #e1251b;
                        font-size: 12px;
                        color: #fff;
                        //  text-align: center;
                        line-height: 25px;
                        margin-bottom: 10px;

                        &:hover {
                            background: #c81623;
                        }
                    }
                }


            }

            .news {
                width: 160px;
                height: 120px;

                // padding-top: 10px;
                .title {
                    height: 20px;
                    margin-bottom: 10px;
                    line-height: 20px;

                    span {
                        float: left;
                        font-weight: 700;
                        font-size: 14px;
                        color: #333;
                    }

                    a {
                        font-size: 12px;
                        color: #999;
                        float: right;

                        &:hover {
                            color: #e1251b;
                        }
                    }
                }

                .concent {
                    display: block;
                    width: 160px;
                    line-height: 16px;
                    font-size: 12px;
                    color: #666;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin-bottom: 5px;

                    &:hover {
                        color: #e1251b;
                    }

                    span {
                        margin-right: 5px;
                        color: #e1251b;
                        /*!background-color: rgb(255, 27, 37,.5)*/
                    }
                }

                &::after {
                    display: block;
                    content: '';
                    height: 1px;
                    background: linear-gradient(270deg, white, #eee, #eee, white);
                }
            }

            .service {
                width: 160px;
                height: 225px;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-content: space-around;

                a {
                    display: inline-block;
                    width: 45px;
                    height: 50px;
                    line-height: 14px;
                    font-size: 12px;
                    text-align: center;
                    color: #333;

                    >div {
                        line-height: 36px;
                        font-size: 28px;
                    }

                    &:hover {
                        color: #e1251b;
                    }
                }
            }
        }
    }

    #spike {
        width: 1200px;
        margin: 0 auto;
        padding-top: 20px;

        a {
            display: block;
            width: 200px;
            height: 260px;
            float: left;
            background: #fff;
            text-align: center;
            font-size: 12px;

            img {
                width: 140px;
                height: 140px;
                margin-top: 50px;
            }

            h6 {
                height: 18px;
                line-height: 18px;
                color: #333;
            }

            div {
                height: 24px;
                line-height: 24px;
                color: #e1251b;
            }
        }
    }

    #feature {
        width: 1200px;
        margin: 0 auto;
        padding-top: 20px;

        .left {
            width: 560px;
            height: 330px;
            float: left;
            padding: 0 15px;
            background: #fff;

            .title {
                width: 560px;
                height: 60px;
                line-height: 60px;

                .title-left {
                    float: left;
                    color: #333;
                    font-size: 24px;
                    font-weight: 700;
                }

                ul {
                    float: left;
                    margin-left: 100px;

                    li {
                        float: left;
                        padding: 0 5px;

                        a {
                            color: #999;
                        }
                    }
                }

            }

            .productList {
                width: 560px;
                height: 255px;
                padding: 0 0 15px 0;

                .productList-left {
                    width: 220px;
                    float: left;
                    text-align: center;

                    img {
                        width: 120px;
                        height: 120px;
                        margin-top: 50px;
                    }

                    span {
                        display: block;
                    }
                }

                .productList-right {
                    width: 340px;
                    float: right;

                    div {
                        width: 165px;
                        margin-bottom: 48px;
                        margin-left: 5px;
                        float: left;
                        position: relative;

                        img {
                            width: 84px;
                            height: 84px;
                            vertical-align: top;
                        }

                        span {
                            display: block;
                            line-height: 16px;
                            width: 75px;
                            position: absolute;
                            right: 0;
                            top: 0;
                            font-size: 12px;
                        }

                        div {
                            width: 75px;
                            line-height: 32px;
                            position: absolute;
                            right: 0;
                            top: 32px;
                            font-size: 16px;
                        }
                    }
                }
            }

        }

        .right {
            width: 560px;
            height: 330px;
            float: right;
            padding: 0 15px;
            background: #fff;

            .title {
                width: 560px;
                height: 60px;
                line-height: 60px;

                .title-left {
                    // float: left;
                    color: #333;
                    font-size: 24px;
                    font-weight: 700;
                }
            }
        }

        .scrollShow {
            .show {
                margin-top: 20px;
                display: block;
                width: 190px;
                height: 260px;
                float: left;
                background: #fff;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .scroll {
                margin-top: 20px;
                width: 990px;
                height: 260px;
                float: right;
                background: #fff;
            }
        }
    }

    #forYou {
        width: 1200px;
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 20px;

        .forYou {
            text-align: center;
            font-size: 28px;
            color: #333;
            line-height: 45px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .productItem {
            display: block;
            width: 230px;
            height: 322px;
            text-align: center;
            color: #333;
            background: #fff;
            float: left;
            margin-right: 10px;
            margin-bottom: 20px;

            img {
                margin-top: 30px;
                width: 150px;
                height: 150px;
            }

            p {
                width: 190px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                line-height: 48px;
                margin: 0 auto;
                text-align: left;
                margin-top: 20px;
                font-size: 16px;
            }

            div {
                width: 190px;
                line-height: 66px;
                text-align: left;
                padding: 0 20px;
                font-size: 14px;
                color: #e1251b;
            }

            &:hover {
                box-shadow: 4px 4px 3px #333;
            }
        }
    }

    #add {
        width: 1200px;
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 20px;
        text-align: center;
        button{
            width: 80px;
            height: 50px;
            line-height: 50px;
            background: #e1251b;
            font-weight: 700;
            font-size: 16px;
            border: 0;
            &:hover{
                background: #c81623;
                cursor: pointer;
            }
        }
    }

    #service {
        width: 1200px;
        margin: 0 auto;
        padding: 0 0 20px 0;
        display: flex;
        justify-content: space-evenly;
        font-size: 18px;
        font-weight: 700;
        color: #444;

        li {
            line-height: 40px;
            text-indent: 40px;
        }
    }
}

footer {
    background: #e3e4e5;
    border-top: 1px solid #999;
    padding-top: 20px;

    #help {
        width: 1200px;
        height: 200px;
        margin: 0 auto;
        line-height: 22px;
        font-size: 14px;
        color: #666;
        border-bottom: 1px solid #999;

        >li {
            width: 198px;
            float: left;
            font-weight: 700;

            >ul>li>a {
                font-size: 12px;
                color: #666;

                &:hover {
                    color: #e1251b;
                }
            }
        }
    }

    #other {
        width: 1200px;
        height: 200px;
        margin: 0 auto;
        text-align: center;
    }
}